/*
 * 数据统计
 * */

import http from '@/utils/http';

//  访问趋势请求
export async function fakeTrendChartData(params) {
  return http.post('/cloud/chart/accessTrendJson', params);
}

// 访客分布

export async function fakeChartData(params) {
  return http.post('/cloud/chart/userAreaChartJson', params);
}

//  问答详细统计 - 分类统计
export async function fakeSIssueAnswerTatisticsData(params) {
  return http.post('/cloud/stat/qaJson', params);
}

//  问答详细统计 - 分类统计 跟新
export async function detailCategoryList(params) {
  return http.post('/cloud/new/stat/qa/detail/categoryList', params);
}

//  问答详细统计 - 详细统计 跟新
export async function detailDetailList(params) {
  return http.post('/cloud/new/stat/qa/detail/detailList', params);
}

// 问答详细统计 导出excel
export async function exportx(params) {
  return http.post('/cloud/stat/qa/export', params);
}

//  问答比例统计 
export async function ratioSticsData(params) {
  return http.post('/cloud/stat/statQAChartJson', params);
}

//  问答记录
export async function fakeAnswerRecordsData(params) {
  return http.post('/cloud/stat/listChatJson', params);
}

// 问答记录 -- 关联列表
export async function fakeAnswerRelevanceData(params) {
  return http.post('/cloud/new/learn/wait/ques/relation/question', params);
}

// 问答记录 -- 关联列表 --关联知识点
export async function fakeAnswerRelevanceknowledgeData(params) {
  return http.post('/cloud/new//stat/qa/record/relationQa', params);
}

// 问答记录 -- 关联上下文
export async function fakeAnswerRelevanceUpDownData(params) {
  return http.post('/cloud/stat/listSessionChatsJson', params);
}

// 下载
export async function listChat(params) { 
  return http.downloadFile('/cloud/stat/listChat', params);
}

// 问答详细统计下载
export async function exportWD(params) {  // /cloud/stat/qa/export
  return http.downloadFile('/cloud/new/stat/qa/detail/category/export', params);
}

// 问答详细下载
export async function exportWE(params) {  // /cloud/stat/qa/export
  return http.downloadFile('/cloud/new/stat/qa/detail/detail/export', params);
}



